import './assets/main.css'

import { createApp } from 'vue'
import { createPinia } from 'pinia'
import axios from 'axios'
import App from './App.vue'
import router from './router'
import ElementPlus from 'element-plus'
import 'element-plus/dist/index.css'
axios.defaults.baseURL = 'http://localhost:3000'

axios.interceptors.response.use((res) => {
    return res.data
})

const app = createApp(App)
app.provide('$axios',axios)
app.use(createPinia())
app.use(router)
app.use(ElementPlus)
app.mount('#app')
